/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Practica5.practica;

import Practica5.util.Edge;
import Practica5.util.Vertex;

/**
 *
 * @author miguel
 */
public class MyEdge<E> extends Edge<E>{
    
    private int color;
    private boolean visited = false;

    public boolean isVisited() {
        return visited;
    }

    public void setVisited(boolean visited) {
        this.visited = visited;
    }

    public MyEdge(Vertex<E> s, Vertex<E> t, int color){
        super(s,t);
        this.color = color;
    }
    
    public MyEdge(Vertex<E> s, Vertex<E> t, int w, int idx, int color){
        super(s,t,w,idx);
        this.color = color;
    }
    
    public int getColor(){
        return color;
    }
    
    public void setColor(int color){
        this.color = color;
    }
    
    
}
